import { ref } from 'vue'

export default function addLonwledgeService() {
  // 控制添加知识库窗口
  const addKnowledgeState = ref<boolean>(false)
  const openaddKnowledgeModal = () => {
    addKnowledgeState.value = true
  }
  const closeaddKnowledgeModal = () => {
    addKnowledgeState.value = false
  }

  return { addKnowledgeState, openaddKnowledgeModal, closeaddKnowledgeModal }
}
